package com.icangya.service;

import com.icangya.domain.Banners;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.Serializable;
import java.util.List;

public interface IBannerManageService {

    //获取所有banner
    List<Banners> getAllBanner();


    //保存Img文件到指定路径,并保存路径到session中
    void saveNewBanner(HttpServletRequest request, MultipartFile file );

    //保存img地址到数据库
    Serializable saveToSql(String path);



    //删除banner记录与img文件
    boolean deleteIt(long id);

}
